﻿using System.Web.Configuration;
using Framework.Sql;

namespace MvcApplication1.Framework
{
    public class ConnectionStringLoader : IConnectionConfiguration
    {
        public static ConnectionStringLoader Loader
        {
            get
            {
                return new ConnectionStringLoader();
            }
        }

        public string ConnectionString
        {
            get
            {
                return WebConfigurationManager.ConnectionStrings["CharacterCreator"].ConnectionString;
            }
        }
    }
}